home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Graphics / QuickDraw GX / GX->PostScript Sample / GXToPostScript / Font Handler / FontHandlerDummy.cp < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.2 KB  |  89 lines  |  [TEXT/CWIE]

  1. /*
  2.      File:        FontHandlerDummy.cp
  3.  
  4.      Contains:    QuickDraw GX to PostScript conversion code.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1.x
  7.       
  8.      Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #include <ScalerTypes.h>
  12. #include "FontDatabase.h"
  13. #include "GXPrintingUniverse.h"
  14. #include "FontHandler.h"
  15.  
  16. OSErr FontHandlerInit(TFontHandlerContext *context, TFontDbase docFontDbase, scalerStreamTypeFlag legalStreamTypes, TFHDownloadFlags flags,
  17.                                                 unsigned char* version, unsigned char* revision, unsigned char* product) 
  18.     {
  19.         return noErr;
  20.     }
  21.  
  22. OSErr FontHandlerShutdown(TFontHandlerContext context)
  23.     {
  24.         return noErr;
  25.     }
  26.  
  27. OSErr    FontHandlerLockContext(TFontHandlerContext context)
  28.     {
  29.         return noErr;
  30.     }
  31.                                                                                                                                         
  32. OSErr    FontHandlerUnlockContext(TFontHandlerContext context)
  33.     {
  34.         return noErr;
  35.     }
  36.  
  37. OSErr FontHandlerResolveShapeFonts(TFontHandlerContext context, gxShape theShape)
  38.     {
  39.         return no_outline_font_found;            // returning this here triggers the imaging engine to rasterize the text.
  40.     }
  41.  
  42. OSErr    FontHandlerMakeFontAvailable(TFontHandlerContext context, gxStyle theStyle, long *prFontIndex, unsigned char name[256], 
  43.                                                                                 TFHSaveResult *saveLevelResult)
  44.     {
  45.         return noErr;
  46.     }
  47.  
  48. OSErr FontHandlerDoDocumentHeader(TFontHandlerContext context)
  49.     {
  50.         return noErr;
  51.     }
  52.  
  53. #ifndef GXTOPOSTSCRIPTLIBRARY
  54.     OSErr    FontHandlerGetProcSetList(TFontHandlerContext context, gxProcSetListPtr procSetList, Boolean needsHex)
  55.     {
  56.         return noErr;
  57.     }
  58. #else
  59.     OSErr    FontHandlerDownloadProcSetList(TFontHandlerContext context, Boolean needsHex)
  60.     {
  61.         return noErr;
  62.     }
  63. #endif
  64.  
  65. OSErr FontHandlerSetFontVM(TFontHandlerContext context, long fontVM)
  66.     {
  67.         return noErr;
  68.     }
  69.  
  70. OSErr FontHandlerBalanceSaveLevel(TFontHandlerContext context)
  71.     {
  72.         return noErr;
  73.     }
  74.  
  75. OSErr FontHandlerGetStyleFont(TFontHandlerContext context, gxStyle theStyle, fhFont *theFont)
  76.     {
  77.         return noErr;
  78.     }
  79.  
  80. OSErr FontHandlerGetStyleFontVariations(TFontHandlerContext context, gxStyle theStyle, long *count, gxFontVariation variations[])
  81.     {
  82.         return noErr;
  83.     }
  84.  
  85. OSErr FontHandlerOutputVariationPSOperator(TFontHandlerContext context, gxStyle theStyle)
  86.     {
  87.         return noErr;
  88.     }
  89.